<?php


namespace app\controllers;

use Yii;

class WebController extends BaseController {
    public $layout = false;

    public function __construct($id, $module, $config = []) {
        parent::__construct($id, $module, $config);
        if (Yii::$app->user->isGuest) {
            $this->redirect(Yii::$app->request->hostInfo . '/users/login');
        }
    }
}